package wiki.hitime.stl.daq.enums;


public enum ProcessStatusEnum {

    // 处理状态
    WAITING(0, "未处理"),
    SUCCEED(1, "处理成功"),
    FAILED(2, "处理失败");


    private int status;
    private String msg;

    ProcessStatusEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return this.status;
    }

    public String getMsg() {
        return this.msg;
    }

    public static ProcessStatusEnum valueOf(int status) {
        for (ProcessStatusEnum enumItem : ProcessStatusEnum.values()) {
            if (enumItem.getStatus() == status) {
                return enumItem;
            }
        }
        return null;
    }
}
